package com.woniu.sharepark.leasesystem.lessor.dto;

import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

/**
 * @ClassName: CarParkDTO
 * @Description: 用于前端添加车位信息时，将数据传回后端
 * @Author: Zongjie.Li
 * @Date: 2019/6/4
 * @Version: 1.0
 *
 * @Version: 1.1
 * 新增carParkPic变量，用于存放车位实体图片
 **/

@Component
public class CarParkDTO {

    private Integer numberStart;
    private Integer numberEnd;
    private String address;
    private Double price;
    private Integer timeStart;
    private Integer timeEnd;
    private Integer communityID;
    private MultipartFile carParkPic;
    private MultipartFile propertyInfo;

    public Integer getNumberStart() {
        return numberStart;
    }

    public void setNumberStart(Integer numberStart) {
        this.numberStart = numberStart;
    }

    public Integer getNumberEnd() {
        return numberEnd;
    }

    public void setNumberEnd(Integer numberEnd) {
        this.numberEnd = numberEnd;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getTimeStart() {
        return timeStart;
    }

    public void setTimeStart(Integer timeStart) {
        this.timeStart = timeStart;
    }

    public Integer getTimeEnd() {
        return timeEnd;
    }

    public void setTimeEnd(Integer timeEnd) {
        this.timeEnd = timeEnd;
    }

    public Integer getCommunityID() {
        return communityID;
    }

    public void setCommunityID(Integer communityID) {
        this.communityID = communityID;
    }

    public MultipartFile getCarParkPic() {
        return carParkPic;
    }

    public void setCarParkPic(MultipartFile carParkPic) {
        this.carParkPic = carParkPic;
    }

    public MultipartFile getPropertyInfo() {
        return propertyInfo;
    }

    public void setPropertyInfo(MultipartFile propertyInfo) {
        this.propertyInfo = propertyInfo;
    }

    @Override
    public String toString() {
        return "CarParkDTO{" +
                "numberStart=" + numberStart +
                ", numberEnd=" + numberEnd +
                ", address='" + address + '\'' +
                ", price=" + price +
                ", timeStart=" + timeStart +
                ", timeEnd=" + timeEnd +
                ", communityID=" + communityID +
                ", carParkPic=" + carParkPic +
                ", propertyInfo=" + propertyInfo +
                '}';
    }
}
